'use strict';
var Model = require('../../../Base/server/controllers/Model');

var modelField = {};
modelField.Code = {
    type: String,
    Name: '编码',
    IsUnique: true,
    IsEmpty: false,
    trim: true
};
modelField.Name = {
    type: String,
    Name: '名称',
    IsEmpty: false,
    trim: true
};

modelField.IsEffective = {
    type: Boolean
};

modelField.Remark = {
    type: String,
    default: '',
    trim: true
};

//唯一标识
modelField.UniqueID = {
    type: String,
    trim: true
};

var newModel = new Model(modelField);
newModel.addIndex({Code: 1, Name: 1});
newModel.create('Container', '容器');
